package cn.shiwei.hr.constants;

public enum ErroeCode {
    LOGIN_USERNAME_IS_NULL("1001", "用户名为空"),
    LOGIN_PASSWORD_IS_NULL("1002", "用户密码为空"),
    EMPLOYEE_REALNAME_IS_NULL("2001", "员工所属机构名称为空"),
    EMPLOYEE_TEL_IS_NULL("2002", "员工电话名称为空"),
    EMPLOYEE_EMAIL_IS_NULL("2003", "员工联系邮箱名称为空"),
    TENANT_COMPANYNAME_IS_NULL("3001", "机构名称为空"),
    TENANT_COMPANYNUM_IS_NULL("3002", "机构注册编号为空"),
    TENANT_ADDRESS_IS_NULL("3003", "机构注册地址为空"),
    TENANT_LOGO_IS_NULL("3004", "机构logo为空"),
    TENANT_TENANTTYPE_IS_NULL("3005", "机构类型为空"),
    MEAL_TYPE_IS_NULL("4001", "套餐类型为空"),
    SYSTEM_EXCEPTION("500", "系统繁忙");

    private String code;
    private String msg;

    ErroeCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public String toString() {
        return this.getMsg() + "[" + this.code + "]";
    }
}
